package com.tarena.charging.device.controller;

import com.tarena.charging.device.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags="测试功能模块")
public class TestController {
    @Autowired
    private TestService testService;
    //利用一个http接口 测试跑通项目
    @GetMapping("/test")
    @ApiOperation("测试接口")
    public Long test(){
        return testService.test();
    }
}
